package net.csdn.business.common.domain.issue.event;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;
import net.csdn.business.common.domain.issue.IssueExt;

/**
 * @author likun
 * @date 2022/11/24 18:48
 */
@Data
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@ToString(callSuper = true)
public class UpdateTitleEventDto extends BaseEventDto {

    public static LockEventDto buildChangeEvent(String id, Long projectId, String actionUid, Integer actionUserType, String title, IssueExt ext) {
        return LockEventDto.builder()
                .id(id).projectId(projectId).title(title)
                .actionUid(actionUid).actionUserType(actionUserType).ext(ext)
                .build();
    }
}